package com.laker.admin.module.datasource.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 数据源管理中的数据源表信息
 * @author zhangwei (<a href="mailto:zhangwei@zork.com.cn">zhangwei@zork.com.cn</a>)
 * @date 2020-06-02 16:10
 */
@Data
@ApiModel(value = "数据源表", description = "数据源表")
public class DsTableDto {

    @ApiModelProperty(value = "数据源表主键", name = "id", required = false)
    private Long id;

    /**
     * 表名
     */
    @ApiModelProperty(value = "表名称", name = "name", required = true)
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty(value = "表备注", name = "comment", required = false)
    private String comment;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者", name = "createBy", required = false)
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", name = "createTime", required = true)
    private Date createTime;

    /**
     * 模式名(在mysql中指的是数据库名称)
     */
    @ApiModelProperty(value = "模式名(在mysql中指的是数据库名称)", name = "schemaName", required = true)
    private String schemaName;

    /**
     * 数据源 id
     */
    @ApiModelProperty(value = "数据源 id", name = "dsDatasourceId", required = false)
    private Long dsDatasourceId;

}